import { Request } from '@/server/http';


export function login(parameter: any) {
    // 登入接口
    return Request.axiosInstance({
        // url: '/users/login',
        url: '/api/home',
        method: 'post',
        data: parameter
    })
}
export function setSentence(parameter: any) {
    return Request.axiosInstance({
        url: '/api/addSentence',
        method: 'post',
        data: parameter
    })
}

export function searchSentence(parameter: any) {
    return Request.axiosInstance({
        url: '/api/searchSentence',
        method: 'post',
        data: parameter
    })
}

export function getWebsite(parameter: any) {
    return Request.axiosInstance({
        url: '/api/website',
        method: 'post',
        data: parameter
    })
}
export function queryDetail(parameter: any) {
    return Request.axiosInstance({
        url: '/api/queryDetail',
        method: 'post',
        data: parameter
    })
}

export function download(parameter: any) {
    return Request.axiosInstance({
        url: '/img/demo.85e016f3.jpg',
        method: 'post',
        responseType:'blob',
        data: parameter
    })
}
// http://localhost:8080